package com.alibaba.demo.service;

import com.alibaba.demo.entity.AyUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Collection;
import java.util.List;

/**
 * @author zhouyanxiang
 * @create 2020-08-2020/8/24-15:04
 */
public interface AyUserService {
    AyUser findById(String id) throws Exception;
    List<AyUser> findAll();
    AyUser save(AyUser ayUser);
    void delete(String id);
    // 分页
    Page<AyUser> findAll(Pageable pageable);

    List<AyUser> findByName(String name);

    List<AyUser> findByNameLike(String name);

    List<AyUser> findByIdIn(Collection<String> ids);
}
